home *** CD-ROM | disk | FTP | other *** search
- Path: news.ner.bbnplanet.net!forest!ebromber
- From: ebromber@forest.drew.edu
- Newsgroups: comp.lang.c
- Subject: Question on pointers
- Message-ID: <1996Apr8.233330.139449@forest>
- Date: 8 Apr 96 23:33:30 EST
- Organization: Drew University
-
- In a program there is an array of structs. One of the headers for a
- function says void pop(stack *). My question is shouldn't there be a name
- or identifier after the asterisk? My friend says that it is the address of
- a stack in the array. If this is true, how could I access the thing
- pointed to?
- Here are some lines which define a stack
-
- typedef struct item item;
- struct item {
- struct item *next;
- char c;
- }
- typedef item *stack;
-
-
-